﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QD.Snapshot.Core.Model;

namespace QD.Snapshot.Core.Config
{
    public class Engine
    {
        /// <summary>
        /// 搜索引擎: 0 百度,1 360, 2 搜狗,3 bing, 4中国搜索, 5 搜狗微信,10 谷歌,11 雅虎,12 有道,13 搜搜,14 114搜索,15 伍佰亿,16 微信百度,17 微信网页
        /// </summary>
        public static string[] Engines = { "0", "1", "2", "3", "4", "5" };

        public static string[] EngineTitle = { "百度", "360", "搜狗", "Bing", "中国搜索", "搜狗微信" };

        public static string URL_BD = "https://www.baidu.com/s?ie=utf-8&rsv_idx=1&wd={0}&pn={1}";

        public static string URL_360 = "https://www.so.com/s?q={0}";

        public static string URL_SOGOU = "https://www.sogou.com/web?query={0}&_asf=www.sogou.com&_ast=1301755099&w=01019900&p=40040100";

        public static string URL_Bing = "http://cn.bing.com/search?q={0}";

        public static string URL_GuoSou = "http://www.chinaso.com/search/pagesearch.htm?q={0}&fm=sug";

        public static string URL_WX = "http://weixin.sogou.com/weixin?type=2&s_from=input&query={0}&ie=utf8&_sug_=y&_sug_type_=&w=01019900";
    }

    public enum EngineType
    {
        /// <summary>
        /// 百度
        /// </summary>
        BaiDu = 0,
        /// <summary>
        /// 360引擎
        /// </summary>
        _360 = 1,
        /// <summary>
        /// 搜狗
        /// </summary>
        SoGou = 2,
        /// <summary>
        /// Bing引擎
        /// </summary>
        Bing = 3,
        /// <summary>
        /// 国搜
        /// </summary>
        GuoSou = 4,
        /// <summary>
        /// 搜狗微信
        /// </summary>
        WeiXin = 5
    }
}